﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Fee.Mapping
{
    public class ProjectNumberMappingMapping : IEntityTypeConfiguration<ProjectNumberMapping>
    {
        public void Configure(EntityTypeBuilder<ProjectNumberMapping> builder)
        {
            builder.HasKey(_ => _.Id);
            builder.Property(_ => _.Id).ValueGeneratedOnAdd();
            builder.Property(_ => _.No).HasMaxLength(64);
            ;
            builder.Property(_ => _.ShortNo).HasMaxLength(24);
            builder.ToTable("fee_ProjectNumberMapping");
        }
    }
}